<template>
	<view class="page-center">
		<nav-bar title="在找车详情" :showLeftIcon="true" :leftSlot="false"></nav-bar>
		
		<view class="find-car" :style="{'height': scrollHeight}">
			<view class="detail-main">
				<view class="detail-title">
					<text>需求详情</text>
				</view>
				<view class="to-place">
					<text>南京 江宁</text>
					<image src="@/static/images/public/to-hear.png" mode=""></image>
					<text>徐州 铜山</text>
				</view>
				<view class="car-info">
					<text>轿车</text>
					<text style="margin: 0 10rpx;">/</text>
					<text>1台</text>
					<text style="margin: 0 10rpx;">/</text>
					<text>能正常行驶</text>
				</view>
				<view class="check-time">
					<text>托运日期：2024-09-07</text>
					<text class="dimension">(明天)</text>
				</view>
				<view class="lick-num">
					<text>当前联系次数：</text>
					<text class="dimension">23次</text>
				</view>
				<view class="car-detail flex-sp">
					<text>车辆名称：</text>
					<text class="detail-rl">XXXXXXXXXX</text>
				</view>
				<view class="car-detail flex-sp">
					<text>车辆估值：</text>
					<text class="detail-rl">10万</text>
				</view>
				<view class="car-detail flex-sp">
					<text>此需求截至日期</text>
					<text class="detail-rl">2024/09/01</text>
				</view>
				<view class="car-detail">
					<text>备注</text>
					<view class="detail-rl">这是备注这是备注这是备注这是备注这是备注这是备注这是备注这是备注这是备注这是备注这是备注这是备注这是备注这是备注</view>
				</view>
			</view>
			
			<view class="detail-main">
				<view class="detail-title">
					<text>报价列表</text>
				</view>
				<view class="quotation-list flex-sp" v-for="item in 5">
					<view class="company-name">
						<view class="name">
							北京拖车车物流有限公司
						</view>
						<view class="time">
							预计到达时间：2024/09/13
						</view>
					</view>
					<view class="quotation-num">
						1800元
					</view>
				</view>
			</view>
			
		</view>
		
		
		<!-- 电话联系  报价 -->
		<view class="opeart">
			<view class="opeart-btn opeart-phone">
				<image src="../../../static/images/public/quo-phone.png" mode=""></image>
				<text>电话联系</text>
			</view>
			<view class="opeart-btn opeart-quotation">
				<image src="../../../static/images/public/quotation.png" mode=""></image>
				<text>立即报价</text>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				scrollHeight: '',
			}
		},
		async onLoad() {
			this.scrollHeight = this.$store.getters.heightData.noTabMainHeight + 'px'
			console.log(this.$store.getters.heightData)
		},
		methods: {
			navigator(url) {
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page-center {
		font-family: "PingFang SC";
		font-size: 26rpx;
		position: relative;
		background: #f6f6f6;
		width: 100%;
		height: 100vh;
		position: relative;
	}
	.flex-sp {
		display: flex;
		justify-content: space-between;
	}
	.find-car {
		padding: 20rpx 28rpx;
		padding-bottom: 130rpx;
		overflow-y: auto;
		.detail-main {
			background: #fff;
			padding: 20rpx 24rpx;
			border-radius: 12rpx;
			margin-bottom: 20rpx;
			.detail-title {
				font-size: 28rpx;
				color: #1a1a1a;
				font-weight: 500;
				margin-bottom: 20rpx;
				&::before {
					content: "";
					display: inline-block;
					width: 4rpx;
					height: 24rpx;
					background: #1777FF;
					margin-right: 8rpx;
					vertical-align: middle;
				}
				text {
					vertical-align: middle;
				}
			}
			.to-place {
				font-size: 30rpx;
				color: #1A1A1A;
				image {
					width: 35rpx;
					height: 8rpx;
					margin: 0 12rpx;
					vertical-align: middle;
				}
				.place-number {
					font-size: 44rpx;
					color: #1777FF;
				}
			}
			
			.car-info {
				color: #ff7512;
				font-size: 26rpx;
				margin-top: 20rpx;
				line-height: 1;
			}
			
			.check-time {
				color: #9F9F9F;
				font-size: 24rpx;
				margin-top: 18rpx;
				line-height: 1;
			
				.dimension {
					color: #1777ff;
					margin: 20rpx;
				}
				.dimension-fill {
					color: #1C1C1C;
					font-size: 26rpx;
				}
			}
			.lick-num {
				color: #1777ff;
				font-size: 28rpx;
				display: flex;
				justify-content: space-between;
				margin-top: 20rpx;
			}
			.car-detail {
				font-size: 28rpx;
				color: #676767;
				margin-top: 16rpx;
				.detail-rl {
					color: #1a1a1a;
				}
			}
			
			.quotation-list {
				font-size: 28rpx;
				margin-bottom: 30rpx;
				.company-name {
					color: #1a1a1a;
					.time {
						color: #808080;
						margin-top: 16rpx;
					}
				}
				.quotation-num {
					font-weight: 500;
					color: #1777ff;
				}
			}
		}
	}
	
	.opeart {
		padding: 16rpx 28rpx; 
		display: flex;
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100vw;
		background: #fff;
		.opeart-btn {
			flex: 1;
			height: 88rpx;
			border-radius: 16rpx;
			font-size: 32rpx;
			text-align: center;
			line-height: 88rpx;
			image {
				width: 48rpx;
				height: 48rpx;
				margin-right: 10rpx;
				vertical-align: middle;
			}
		}
		.opeart-phone {
			color: #1777ff;
			border: 2rpx solid #1777ff;
			margin-right: 20rpx;
		}
		.opeart-quotation {
			background: #1777ff;
			color: #fff;
		}
	}
</style>